<template>
  <div class="language">
    <navs title='语言切换'></navs>
    <van-radio-group v-model="language">
      <van-cell-group>
        <van-cell v-for='(item,index) in list' :key="index" :title="item" clickable @click="changeLang(index)">
          <van-radio slot="right-icon" :name="index" />
        </van-cell>
      </van-cell-group>
    </van-radio-group>
  </div>
</template>

<script>
import navs from '@/components/nav'
  export default {
    name:'language',
    components:{
      navs
    },
    data() {
      return {
        list: ['简体中文','繁体中文','English'],
        language:0
      }
    },
    methods: {
      changeLang(e) {
        this.language = e
        console.log(e)
      }
    },
   
  }
</script>

<style scoped>

</style>